<!DOCTYPE html>
<html lang="cn" class="app fadeInUp animated">
<head>
  <meta charset="utf-8"/>
  <title>{$_SERVER['WEB_NAME']}—国内最专业的小程序管理平台</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  <link href="/assets/stylesheets/bootstrap.min.css" rel="stylesheet"/>
  <link href="/assets/stylesheets/font-awesome.min.css" rel="stylesheet"/>
  <script type="text/javascript">
        var _speedMark = new Date(),
            www_version = {time()};
    </script>
  <style>
    .nowrap{
      white-space: nowrap;
    }
    .canwrap{
      word-break: break-all;
    }
  </style>
</head>

<body>

<div class="container-fluid" style="padding-top: 15px">
  <div class="row">
    <div class="col-md-12">
      <!--发送记录面板-->
      <div class="panel panel-default">
        <div class="panel-heading">
          模板收益记录
        </div>
        <div class="panel-body">
          <table class="table">
            <tr>
              <th>模板ID</th>
              <th>模板名称</th>
              <th>购买用户</th>
              <th>所得盈利</th>
              <th>购买时间</th>
            </tr>
            {loop $res as $r}
            <tr>
              <td class="nowrap">{$r->template_id}</td>
              <td class="nowrap">{$r->template_name}</td>
              <td class="nowrap">{$r->username}</td>
              <td class="nowrap">{$r->profit}</td>
              <td class="nowrap">{date('Y-m-d H:i:s',$r->ctime)}</td>
            </tr>
            {/loop}
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<footer class="footer bg-white b-t">
         <div class="row text-center-xs">
          <div class="col-md-6 hidden-sm">
               <p class="text-muted m-t">总共{$pnum}条</p>
           </div>
            <div class="col-md-6 col-sm-12 text-right text-center-xs">
               <ul class="pagination pagination-sm m-t-sm m-b-none" data-pages-total="1" data-page-current="1">{P pages}</ul>
           </div>
         </div>
</footer>
  <script src="/assets/javascripts/sea-modules/seajs/seajs/2.2.0/sea.js?v=<?php echo date("Ymdhisa")?>"></script>
    <script src="/assets/javascripts/seajs_config.js?v=<?php echo date("Ymdhisa")?>"></script>
    <script type="text/javascript">
        seajs.use("dist/application/app.js")
    </script>

</body>

</html>
